package com.wsjc.manager.service.routine.hospital.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;
import com.wsjc.common.core.page.PageBean;
import com.wsjc.common.core.page.PageParam;
import com.wsjc.common.core.utils.StringUtil;
import com.wsjc.manager.dao.hospitals.WjHospitalDao;
import com.wsjc.manager.entity.WjHospital;
import com.wsjc.manager.service.routine.hospital.WjHospitalService;


@Service("wjRegionService")
public class WjHospitalServiceImpl implements WjHospitalService {
	
	
	@Autowired
	private WjHospitalDao wjHospitalDaoImpl ;
	
	
	

	@Override
	public PageBean listHospitalPage(PageParam pageParam, String hospitalName) {
		
		Map<String, Object> paramMap = Maps.newHashMap();
		if(StringUtil.isNotNull(hospitalName)){
			paramMap.put("hospitalName", hospitalName); // 医院名称
		}
		
		return wjHospitalDaoImpl.listPage(pageParam, paramMap);
		
	}




	@Override
	public WjHospital queryWjHospitalById(String id) {
		return wjHospitalDaoImpl.getById(id);
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

}
